package org.duiduo.listener;

import lombok.extern.slf4j.Slf4j;
import org.duiduo.api.consts.RabbitMqConstant;
import org.noear.solon.cloud.CloudEventHandler;
import org.noear.solon.cloud.annotation.CloudEvent;
import org.noear.solon.cloud.model.Event;

/**
 * <pre>
 * 测试监听器
 *     CloudEventAspect 是他的前置拦截器哦
 *     负责加链路编号
 *
 * @author liangze
 * @date 2025/9/30 10:40
 */
@Slf4j
@CloudEvent(topic = RabbitMqConstant.DEMO_TOPIC, group = RabbitMqConstant.GROUP)
public class DemoListener implements CloudEventHandler {

    @Override
    public boolean handle(Event event) {
        return true;
    }

}
